

import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

class LeverSenseTest3 {
	private LeverSense leverSense;

	@BeforeEach
	void setUp() throws Exception {
		leverSense = new LeverSense();
	}
	
	@Test
	void testTc1() {
		leverSense.SetPowerStatus(PowerStatus.OFF);
		leverSense.SetLeverPosition(LeverPosition.LOW);
		leverSense.Up();
		assertEquals(LeverPosition.LOW,leverSense.GetLeverPosition());
	}

	@Test
	void testTc2() {
		leverSense.SetPowerStatus(PowerStatus.ON);
		leverSense.SetLeverPosition(LeverPosition.STOP);
		leverSense.Up();
		assertEquals(LeverPosition.INTERM,leverSense.GetLeverPosition());
	}

	@Test
	void testTc3() {
		leverSense.SetPowerStatus(PowerStatus.ON);
		leverSense.SetLeverPosition(LeverPosition.INTERM);
		leverSense.Up();
		assertEquals(LeverPosition.LOW,leverSense.GetLeverPosition());
	}

	@Test
	void testTc4() {
		leverSense.SetPowerStatus(PowerStatus.ON);
		leverSense.SetLeverPosition(LeverPosition.LOW);
		leverSense.Up();
		assertEquals(LeverPosition.HIGH,leverSense.GetLeverPosition());
	}

	@Test
	void testTc5() {
		leverSense.SetPowerStatus(PowerStatus.ON);
		leverSense.SetLeverPosition(LeverPosition.HIGH);
		leverSense.Up();
		assertEquals(LeverPosition.HIGH,leverSense.GetLeverPosition());
	}

}
